<?php
/**
 * Grooveshark Model Class
 *
 * @author brian
 */
class Application_Model_GroovesharkAPI {
	
	private $api_key;
	private $api_secret;
	private $http;
	
	public function __construct( $api_key, $api_secret )
	{
		$this->api_key = $api_key;
		$this->api_secret = $api_secret;
		$this->setupHttpClient();
	}

	
	private function setupHttpClient()
	{
		$config = new Zend_Config_Ini( APPLICATION_PATH . DIRECTORY_SEPARATOR . 'configs' . DIRECTORY_SEPARATOR . 'http.ini', APPLICATION_ENV );
		$this->http = new Zend_Http_Client();
		$this->http->setConfig($config->toArray());
	}
	
	private function request( $params )
	{
		$params["sig"] = $this->createSignature($params);
	}
	
	
	private function createSignature( $request )
	{
		return hash("md5", $request);
	}
}

?>
